From 19cd4d6af8cbc4dc878887221d4530e267d3ab45 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 23 Jan 2009 20:11:21 +0100 Subject: [PATCH] Revert "Convert all pending X events in _gdk_events_queue" This reverts commit 7cc15ec6ea1504133dfe6febbdb12615550bb966. Its risky to convert all the events in a go like this, as it increases the out-of-order issues. It also isn't a full solution to the motion hint issue as it will only work for the events we happen to convert. It would be better to use serials to handle motion hinting. --- gdk/x11/gdkevents-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkevents-x11.c b/gdk/x11/gdkevents-x11.c index fb99540841..41de19c16f 100644 --- a/gdk/x11/gdkevents-x11.c +++ b/gdk/x11/gdkevents-x11.c @@ -2326,7 +2326,7 @@ _gdk_events_queue (GdkDisplay *display) XEvent xevent; Display *xdisplay = GDK_DISPLAY_XDISPLAY (display); - while (XPending (xdisplay)) + while (!_gdk_event_queue_find_first(display) && XPending (xdisplay)) { XNextEvent (xdisplay, &xevent); -- 2.30.2